package priv.happy.mealpickpro.service;

import priv.happy.mealpickpro.domain.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import priv.happy.mealpickpro.vo.AddressVO;

import java.util.List;

/**
* @author HAPPY
* @description 针对表【address】的数据库操作Service
* @createDate 2023-10-21 10:14:03
*/
public interface AddressService extends IService<Address> {
    List<AddressVO> getAddressListByUserId(Integer userId);

    AddressVO getDefaultByUserId(Integer userId);

    boolean removeUserAddress(Integer userId, Integer id);

    boolean updateAddressById(Address address);

    boolean updateDefaultAddressById(Address address);

    boolean isFirst(Integer userId);
}
